<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "lydb_buyjob_user".
 *
 * @property integer $id
 * @property integer $user_id
 * @property integer $buyjob_id
 * @property string $buy_num
 * @property integer $create_time
 */
class BuyjobUser extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'lydb_buyjob_user';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'buyjob_id'], 'required'],
            [['user_id', 'buyjob_id', 'buy_num', 'create_time'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => 'User ID',
            'buyjob_id' => 'Buyjob ID',
            'buy_num' => 'Buy Num',
            'create_time' => 'Create Time',
        ];
    }
}
